import { Module } from '@nestjs/common';
import { DeviceMqttSimulateController } from './controllers/device-mqtt-simulate.controller';
import { createMqttPublishClientProvider } from './providers/mqtt-publish-client.provider';
import { createMqttSubscribeClientProvider } from './providers/mqtt-subscribe-client.provider';
import { MqttPublishService } from './services/mqtt-publish.service';
import { MqttSubscribeService } from './services/mqtt-subscribe.service';

@Module({
  imports: [],
  controllers: [DeviceMqttSimulateController],
  providers: [createMqttSubscribeClientProvider(), createMqttPublishClientProvider(), MqttSubscribeService, MqttPublishService],
  exports: [MqttPublishService]
})
export class MqttModule {}
